package com.oracleoaec.entity;

import java.io.Serializable;

public class User implements Serializable{
	private static final long serialVersionUID = 6263838470299929417L;
	
	private long id;
	private String userName;
	private String password;
	private int sex;
	private String idNumber;
	private String tel;
	private String addr;
	private int type;//定义用户是设么用户(0:普通人,1管理员)
	
	public int getType() {
		return type;
	}


	public void setType(int type) {
		this.type = type;
	}


	public User(){}
	

	public User(String userName, String password, int sex, String idNumber,
			String tel, String addr) {
		this.userName = userName;
		this.password = password;
		this.sex = sex;
		this.idNumber = idNumber;
		this.tel = tel;
		this.addr = addr;
	}


	public User(long id,String userName,String password) {
		this.id=id;
		this.userName = userName;
		this.password = password;
	}
	
	public User(String userName,String password,int type) {
		this.userName = userName;
		this.password = password;
		this.type=type;
	}

	public User(String userName,String password) {
		this.userName = userName;
		this.password = password;
	}



	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	

	public String getPassword() {
		return password;
	}


	public void setPassword(String password) {
		this.password = password;
	}


	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public String getIdNumber() {
		return idNumber;
	}

	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", userName=" + userName + ", password=" + password + ", sex=" + sex + ", idNumber="
				+ idNumber + ", tel=" + tel + ", addr=" + addr + "]";
	}

}
